import Vue from 'vue'
import App from './App.vue'
import router from './router.js'
import { focus } from './directive'
import './assets/css/index.css'
import Toast from './lib/components/v-toast'

Vue.use(Toast)
Vue.use(focus)
Vue.config.productionTip = false

// 按需引入elementUI的组件
import {
  Button,
  Input,
  Form,
  FormItem,
  Select,
  Option,
  Radio,
  Checkbox,
  DatePicker
} from 'element-ui'
Vue.use(Button)
Vue.use(Input)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Select)
Vue.use(Option)
Vue.use(Radio)
Vue.use(Checkbox)
Vue.use(DatePicker)

//引入全局组件
import './components/index'

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
